package com.yao.mssm.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author yao
 * @since 2017-10-31
 */
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

	private String id;
	private String pid;
	@TableField("menu_name")
	private String menuName;
	private String icon;
	private String url;
    /**
     * 菜单同级排序号
     */
	private Integer seq;
    /**
     * 1启用，0未启用
     */
	private Integer state;
    /**
     * 0已删除，1未删除,是否删除
     */
	private Integer del;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Menu{" +
			", id=" + id +
			", pid=" + pid +
			", menuName=" + menuName +
			", icon=" + icon +
			", url=" + url +
			", seq=" + seq +
			", state=" + state +
			", del=" + del +
			"}";
	}
}
